﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Clearance_Action_Print.aspx.cs"
    Inherits="Trig_AMJ_HR_Forms.Layouts.Trig_AMJ_HR_Forms.Clearance_Action_Print"
    DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link rel="Stylesheet" type="text/css" href="/_layouts/1033/STYLES/Themable/FORMS.CSS" />
    <link rel="Stylesheet" type="text/css" href="/Style Library/Al Majed/CSS/Trig_HR_Print.css" />
    <script language="javascript" type="text/javascript" src="/_layouts/Scripts/validation.js"></script>
    <style type="text/css">
        .ms-validations
        {
            color: Red;
        }
        
        #s4-leftpanel
        {
            display: none;
        }
        .s4-ca
        {
            margin-left: 0px;
        }
        .ms-validations
        {
            color: Red;
        }
        .style2
        {
            width: 373px;
        }
        .style3
        {
            width: 366px;
        }
        body, td, th
        {
            font-size: 8pt;
            font-family: Verdana, Arial, sans-serif;
        }
    </style>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Panel ID="pnlFullForm" runat="server" CssClass="pnlAMFform">
        <table cellpadding="0" cellspacing="0" class="tbl-main" width="800px">
            <tr>
                <td colspan="4" class="formtitle">
                    FINANCIAL ACCOUNTABILITY CLEARANCE FORM
                </td>
            </tr>
            <tr>
                <td width="150px">
                    Reference No :
                </td>
                <td width="250px">
                    <asp:Label ID="lblClrReqNo" runat="server" Text="Reference number will be generated upon save"
                        Font-Bold="True" Font-Size="XX-Small" CssClass="ms-long ms-spellcheck-true" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" width="150px">
                    Date of filling :
                </td>
                <td width="250px">
                    <SharePoint:DateTimeControl ID="dtReqDate" runat="server" DateOnly="true" IsRequiredField="true"
                        LocaleId="2057" Enabled="false" ErrorMessage="Please specify the date" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    TO WHOM IT MAY CONCERN:
                </td>
            </tr>
           <%-- <tr>
                <td colspan="4" class="Note-td">
                    <asp:Label ID="lblInstruct" runat="server" Text="This is to certify that the requester of has been cleared from all his accountabilities
                    in connection with his/her application for:" CssClass="Notes-msg"></asp:Label>
                </td>
            </tr>--%>
            <tr>
                <td class="tdHeadingTextLeftAlign" colspan="4">
                    Clearance Type
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label runat="server" ID="lblClearanceType"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td class="tdHeadingTextLeftAlign" colspan="4">
                    Requested Employee Information
                </td>
            </tr>
            <tr>
                <td width="250px">
                    Name :
                </td>
                <td>
                    <SharePoint:PeopleEditor ID="pplReqUser" runat="server" MultiSelect="false" AutoPostBack="true"
                        SelectionSet="User" Width="250px" Visible="false" />
                    <asp:Label ID="txtReqUser" runat="server" Width="250px"></asp:Label>
                </td>
                <td width="250px">
                    Employee ID :
                </td>
                <td>
                    <asp:Label ID="txtReqEmpId" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="250px">
                    Division :
                </td>
                <td>
                    <asp:Label ID="txtReqDivision" runat="server" Width="250px"></asp:Label>
                </td>
                <td width="250px">
                    Department :
                </td>
                <td>
                    <asp:Label ID="txtReqDepartment" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="250px">
                    Designation :
                </td>
                <td>
                    <asp:Label ID="txtReqDesignation" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr id="trLeaves" runat="server">
                <td width="250px">
                    Leave Reference No :
                </td>
                <td>
                    <asp:Label ID="txtLeaveRefNo" runat="server" Width="250px"></asp:Label>
                </td>
                <td width="250px">
                    Leave Request Date :
                </td>
                <td width="250px">
                    <asp:Label ID="dtLeaveReqDate" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="250px">
                    Effective on :
                </td>
                <td colspan="3">
                    <asp:Label ID="dtEffectiveon" runat="server" Width="250px"></asp:Label>
                </td>
            </tr>
            <asp:Panel runat="server" ID="pnlAccMain">
                <tr>
                    <td class="tdHeadingTextLeftAlign" colspan="4">
                        FINANCIAL ACCOUNTABILITIES
                    </td>
                </tr>
                <tr>
                    <asp:HiddenField runat="server" ID="hdnWF_Order" Value="0" />
                    <td colspan="4">
                        <asp:GridView ID="gvAccountablity" runat="server" AutoGenerateColumns="false" CssClass="Grid-default"
                            OnRowDataBound="gvAccountablity_RowDataBound" AlternatingRowStyle-CssClass="alt-tr"
                            ShowFooter="True">
                            <Columns>
                                <asp:TemplateField HeaderText="S.No" ItemStyle-CssClass="td-center" HeaderStyle-CssClass="td-center">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtSNo" Text='<%# Container.DataItemIndex+1 %>' ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Division" ItemStyle-CssClass="td-left" HeaderStyle-CssClass="td-center">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtGDivision" Text='<%# Eval("Division") %>' ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Accountants" ItemStyle-CssClass="td-left" HeaderStyle-CssClass="td-center">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtGAccountant" Text='<%# Eval("Accountant") %>' ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Other Receivables" ItemStyle-CssClass="td-left" HeaderStyle-CssClass="td-center">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtOtherReceivables" Text='<%# Eval("OtherReceivables") %>'
                                            ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Item Purchased" ItemStyle-CssClass="td-left" HeaderStyle-CssClass="td-center">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtItemsPurchased" Text='<%# Eval("ItemsPurchased") %>'
                                            ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label ID="lblText" runat="server" Visible="true" Text="Total"></asp:Label>
                                    </FooterTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cash Advance" ItemStyle-CssClass="td-right" HeaderStyle-CssClass="td-center">
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="txtAccountability" Text='<%# Eval("CashAdvance") %>'
                                            ReadOnly="true"></asp:Label>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label ID="lblTotal" runat="server" Visible="true"></asp:Label>
                                    </FooterTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Label runat="server" ID="lblGVAcc" Visible="false" Text="No Records found" CssClass="error-msg"></asp:Label>
                    </td>
                </tr>
            </asp:Panel>
            <asp:Panel runat="server" ID="pnlOSView" Visible="false">
                <tr>
                    <td class="tdHeadingTextLeftAlign" colspan="4">
                        <strong>Outstanding Settlement</strong><span class="ms-validations" title="This is a required field."><strong>
                            *</strong></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        Settlement Through
                    </td>
                    <td>
                        <asp:Label runat="server" ID="txtSettlement" Width="250px"></asp:Label>
                    </td>
                </tr>
            </asp:Panel>
            <asp:Panel ID="plnSettle" runat="server" class="Section-Approver" Visible="false">
                <tr>
                    <td>
                        Settlement Through
                    </td>
                    <td colspan="2" align="left">
                        <asp:RadioButtonList runat="server" ID="rdOS" RepeatDirection="Horizontal" OnClick="javascript:EnableOS();">
                            <asp:ListItem Text="Immediate" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="Guarantor" Value="1"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td runat="server" id="tdGuarntor">
                        <span class="ms-validations" title="This is a required field."><strong>*</strong></span>
                        <SharePoint:PeopleEditor runat="server" ID="pplGuarantors" MultiSelect="false" SelectionSet="User"
                            EnableViewState="true" />
                    </td>
                </tr>
            </asp:Panel>
            <tr>
                <td colspan="4" align="center" style="border-right-color: #121e66; border-left-color: #121e66;
                    border-bottom-color: #121e66; border-right-width: 1px; border-bottom-width: 1px;
                    border-left-width: 1px; border-right-style: inset; border-left-style: inset;
                    border-bottom-style: inset; padding: 5px;">
                    <div>
                        <asp:GridView runat="server" ID="gvApprovers" AutoGenerateColumns="true" Width="100%"
                            GridLines="None" CellPadding="5" CellSpacing="5" HeaderStyle-Font-Bold="true"
                            RowStyle-Font-Bold="true">
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="tblButtons" style="padding-top: 5px;">
                    <input type="button" value="Print" id="btnPrint" title="Print" onclick="window.print()"
                        class="ms-ButtonHeightWidth" />
                    <input id="btnCancel" class="ms-ButtonHeightWidth" type="button" value="Close" accesskey="C"
                        onclick="SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel, 'Cancel clicked'); return false;"
                        runat="server" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlAccessDenied" runat="server" Visible="false" CssClass="pnlAMFform">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="text-align: center;">
                    <asp:Label ID="lblAccessDeniedMsg" runat="server" Text="" Font-Size="Medium" ForeColor="Red"
                        Font-Bold="True" Visible="false"></asp:Label>
                    <asp:Label ID="lblUserNotvailable" runat="server" Text="" Font-Size="Medium" ForeColor="Red"
                        Font-Bold="True" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: center; padding-top: 10px;">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/_layouts/1033/IMAGES/IRForm/AccessDeniedImage.png" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center; padding-top: 10px">
                    <input id="butonclose" class="btn-Cancel" type="button" onclick="window.parent.history.back()"
                        value="Close" accesskey="C" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Clearance Action Form
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Clearance Action Form
</asp:Content>
